/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package session03;

import javax.swing.JButton;
import javax.swing.JFrame;

/**
 *
 * @author macbookpro
 */
public class MVC_View extends JFrame {

    private JButton btn;
    
    public MVC_View(){
        btn = new JButton("Click here");
        btn.addActionListener(new MVC_Controller());
        
        this.add(btn);
        this.setSize(300, 200);
        this.setVisible(true);
        
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }
    
    public static void main(String[] args) {
        MVC_View mvc = new MVC_View();
    }
}
